﻿package models  {
	import models.types.SectionType;
	import org.osflash.signals.Signal;
	
	public class MainModel {
		private var _sections:/*SectionType*/Array = [];
		
		private var _total_sections:int = 0;
		
		public var sectionsAssigned:Signal;
		
		public static var instance:MainModel;
		
		public function MainModel():void
		{
			instance = this;
			
			sectionsAssigned = new Signal();
		}
	
		public function set sections(val:Array):void
		{
			_sections = val;
			sectionsAssigned.dispatch();
		}
		
		public function get sections():Array
		{
			return _sections;
		}
		
		public function get total_sections():int 
		{
			return _total_sections;
		}
		
		public function set total_sections(value:int):void 
		{
			_total_sections = value;
		}
	}
}
